package com.thinkgem.jeesite.modules.shop.shangcheng.order;


import com.thinkgem.jeesite.modules.shop.entity.order.Order;
import com.thinkgem.jeesite.modules.shop.service.order.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping(value = "${frontPath}/shop/ordershow")
public class OrderShowController {

    @Autowired
    private OrderService or;

    @RequestMapping("order")
    public String show(Order order, Model model){
        List<Order> list = or.findList(order);
        model.addAttribute("list",list);
        return "modules/modshop/order/index";
    }
}
